package com.example.mobile2021606134chhnewdemo.NewsModule;

public class SearchData {
    private String keyword;
    private int num;
    private String title;
    private String time;
    private String src;
    private String category;
    private String pic;
    private String content;
    private String url;
    private String weburl;

    public String getWeburl() {
        return weburl;
    }

    public void setWeburl(String weburl) {
        this.weburl = weburl;
    }

    public SearchData(String title, String time, String src, String category, String pic, String content, String url, String weburl) {
        this.title = title;
        this.time = time;
        this.src = src;
        this.category = category;
        this.pic = pic;
        this.content = content;
        this.url = url;
        this.weburl = weburl;
    }

//    public SearchData(String keyword, int num, String title, String time, String src, String category, String pic, String content, String url) {
//        this.keyword = keyword;
//        this.num = num;
//        this.title = title;
//        this.time = time;
//        this.src = src;
//        this.category = category;
//        this.pic = pic;
//        this.content = content;
//        this.url = url;
//    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getContent() {
        return content.replaceAll("<.*?>", "");
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
